package com.logictech.lims.entity;

import java.util.Date;
import org.jeecgframework.p3.core.utils.persistence.Entity;

/**
 * 描述：</b>ReagentInventory:<br>
 * 
 * @author guoqi
 * @since：2017年03月21日 16时10分44秒 星期二
 * @version:1.0
 */
public class ReagentInventory implements Entity<Integer> {
	private static final long serialVersionUID = 1L;

	/**
	 * 试剂库存id
	 */
	private Integer id;
	/**
	 * 试剂类型id
	 */
	private Integer reagentTypeId;
	/**
	 * 试剂名称
	 */
	private String reagentType;
	/**
	 * 批号
	 */
	private String batchNo;
	/**
	 * 接收日期
	 */
	private String receivedDate;
	/**
	 * 条形码编号
	 */
	private String barCode;
	/**
	 * 开启人
	 */
	private String opener;
	
	/**
	 * 开启人
	 */
	private String openerVal;
	/**
	 * 开启日期
	 */
	private String openDate;
	/**
	 * 有效日期
	 */
	private String effectiveDate;

	private String status;
	
	private String statusVal;

	/**
	 * 创建者Id
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新者Id
	 */
	private String updateUser;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 打印状态
	 */
	private String printStatus;

	public String getReagentType() {
		return reagentType;
	}

	public void setReagentType(String reagentType) {
		this.reagentType = reagentType;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getReagentTypeId() {
		return this.reagentTypeId;
	}

	public void setReagentTypeId(Integer reagentTypeId) {
		this.reagentTypeId = reagentTypeId;
	}

	public String getBatchNo() {
		return this.batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	public String getReceivedDate() {
		return this.receivedDate;
	}

	public void setReceivedDate(String receivedDate) {
		this.receivedDate = receivedDate;
	}

	public String getBarCode() {
		return this.barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public String getOpener() {
		return this.opener;
	}

	public void setOpener(String opener) {
		this.opener = opener;
	}

	public String getOpenDate() {
		return this.openDate;
	}

	public void setOpenDate(String openDate) {
		this.openDate = openDate;
	}

	public String getEffectiveDate() {
		return this.effectiveDate;
	}

	public void setEffectiveDate(String effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getOpenerVal() {
		return openerVal;
	}

	public void setOpenerVal(String openerVal) {
		this.openerVal = openerVal;
	}
	
	public String getPrintStatus() {
		return printStatus;
	}

	public void setPrintStatus(String printStatus) {
		this.printStatus = printStatus;
	}

	public String getStatusVal() {
	    if("0".equals(status)){
	    	this.statusVal = "未开启";
	    } else if("1".equals(status)){
	    	this.statusVal = "已开启";
	    } else if("2".equals(status)){
	    	this.statusVal = "使用完毕";
	    } else if("3".equals(status)){
	    	this.statusVal = "丢弃";
	    }
	    return statusVal;
	}

	public void setStatusVal(String statusVal) {
		this.statusVal = statusVal;
	}

	@Override
	public String toString() {
		return "[条形码编号=" + barCode + ", 试剂名称=" + reagentType + ", 批号=" + batchNo + ", 接收日期="
				+ receivedDate +  ", 开启人=" + openerVal + ", 开启日期=" + openDate
				+ ", 有效期=" + effectiveDate + ", 状态=" + getStatusVal() + "]";
	}
}
